<%--
  Created by IntelliJ IDEA.
  User: he
  Date: 2015/9/5
  Time: 22:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title></title>
</head>
<body>
<jsp:include page="../inc/header.jsp"/>
<div>
    <table>
   <c:forEach var="address" items="${addressList}">
       <tr>
           <td>地址</td><td>${address.info}</td>
           <td>电话</td><td>${address.phone}</td>
           <td>邮编</td><td>${address.zip}</td>
           <td><a href="/address/delete?id=${address.id}&userId=${loginUser.id}">删除</a></td>
           <td><a href="/address/update?id=${address.id}">修改</a></td>
       </tr>
   </c:forEach>
    </table>
</div>
</body>
</html>
